home *** CD-ROM | disk | FTP | other *** search
- //--------------------------------------------------------------
- //
- // WINMISC.H
- //
- // This file contains Windows API type and constant
- // declarations for calls to the Win32 API from Visual
- // dBASE. Function prototypes are in WIN32API.PRG.
- //
- // Visual dBASE Samples Group
- //
- // $Revision: 1.2 $
- //
- // Portions copyright (c) 1991-1995, Microsoft Corp.
- //
- //--------------------------------------------------------------
-
- #ifndef WINMISC_H
- #define WINMISC_H
-
- #include <WINDEF.H>
-
- //
- // Module Name:
- //
- // Adapted from winnetwk.h
- //
- // Abstract:
- //
- // Standard WINNET Header File for WIN32
- //
- //
- // Network types
- //
- #define WNNC_NET_MSNET 0x00010000
- #define WNNC_NET_LANMAN 0x00020000
- #define WNNC_NET_NETWARE 0x00030000
- #define WNNC_NET_VINES 0x00040000
- #define WNNC_NET_10NET 0x00050000
- #define WNNC_NET_LOCUS 0x00060000
- #define WNNC_NET_SUN_PC_NFS 0x00070000
- #define WNNC_NET_LANSTEP 0x00080000
- #define WNNC_NET_9TILES 0x00090000
- #define WNNC_NET_LANTASTIC 0x000A0000
- #define WNNC_NET_AS400 0x000B0000
- #define WNNC_NET_FTP_NFS 0x000C0000
- #define WNNC_NET_PATHWORKS 0x000D0000
- #define WNNC_NET_LIFENET 0x000E0000
- #define WNNC_NET_POWERLAN 0x000F0000
- #define WNNC_NET_BWNFS 0x00100000
- #define WNNC_NET_COGENT 0x00110000
- #define WNNC_NET_FARALLON 0x00120000
- #define WNNC_NET_APPLETALK 0x00130000
- #define WNNC_NET_INTERGRAPH 0x00140000
-
- //
- // Network Resources.
- //
-
- #define RESOURCE_CONNECTED 0x00000001
- #define RESOURCE_GLOBALNET 0x00000002
- #define RESOURCE_REMEMBERED 0x00000003
- #define RESOURCE_RECENT 0x00000004
- #define RESOURCE_CONTEXT 0x00000005
-
- #define RESOURCETYPE_ANY 0x00000000
- #define RESOURCETYPE_DISK 0x00000001
- #define RESOURCETYPE_PRINT 0x00000002
- #define RESOURCETYPE_RESERVED 0x00000008
- #define RESOURCETYPE_UNKNOWN 0xFFFFFFFF
-
- #define RESOURCEUSAGE_CONNECTABLE 0x00000001
- #define RESOURCEUSAGE_CONTAINER 0x00000002
- #define RESOURCEUSAGE_NOLOCALDEVICE 0x00000004
- #define RESOURCEUSAGE_SIBLING 0x00000008
- #define RESOURCEUSAGE_ALL (bitor(RESOURCEUSAGE_CONNECTABLE, RESOURCEUSAGE_CONTAINER))
- #define RESOURCEUSAGE_RESERVED 0x80000000
-
- #define RESOURCEDISPLAYTYPE_GENERIC 0x00000000
- #define RESOURCEDISPLAYTYPE_DOMAIN 0x00000001
- #define RESOURCEDISPLAYTYPE_SERVER 0x00000002
- #define RESOURCEDISPLAYTYPE_SHARE 0x00000003
- #define RESOURCEDISPLAYTYPE_FILE 0x00000004
- #define RESOURCEDISPLAYTYPE_GROUP 0x00000005
- #define RESOURCEDISPLAYTYPE_NETWORK 0x00000006
- #define RESOURCEDISPLAYTYPE_ROOT 0x00000007
- #define RESOURCEDISPLAYTYPE_SHAREADMIN 0x00000008
- #define RESOURCEDISPLAYTYPE_DIRECTORY 0x00000009
- #define RESOURCEDISPLAYTYPE_TREE 0x0000000A
-
- //
- // Network Connections.
- //
-
- #define NETPROPERTY_PERSISTENT 1
-
- #define CONNECT_UPDATE_PROFILE 0x00000001
- #define CONNECT_UPDATE_RECENT 0x00000002
- #define CONNECT_TEMPORARY 0x00000004
- #define CONNECT_INTERACTIVE 0x00000008
- #define CONNECT_PROMPT 0x00000010
- #define CONNECT_NEED_DRIVE 0x00000020
- #define CONNECT_REFCOUNT 0x00000040
- #define CONNECT_REDIRECT 0x00000080
- #define CONNECT_LOCALDRIVE 0x00000100
- #define CONNECT_CURRENT_MEDIA 0x00000200
-
- #define CONNDLG_RO_PATH 0x00000001 /* Resource path should be read-only */
- #define CONNDLG_CONN_POINT 0x00000002 /* Netware -style movable connection point enabled */
- #define CONNDLG_USE_MRU 0x00000004 /* Use MRU combobox */
- #define CONNDLG_HIDE_BOX 0x00000008 /* Hide persistent connect checkbox */
-
- //
- // NOTE: Set at most ONE of the below flags. If neither flag is set,
- // then the persistence is set to whatever the user chose during
- // a previous connection
- //
- #define CONNDLG_PERSIST 0x00000010 /* Force persistent connection */
- #define CONNDLG_NOT_PERSIST 0x00000020 /* Force connection NOT persistent */
-
- #define DISC_UPDATE_PROFILE 0x00000001
- #define DISC_NO_FORCE 0x00000040
-
- //
- // Universal Naming.
- //
-
- #define UNIVERSAL_NAME_INFO_LEVEL 0x00000001
- #define REMOTE_NAME_INFO_LEVEL 0x00000002
-
- //
- // Other.
- //
-
- #define WNFMT_MULTILINE 0x01
- #define WNFMT_ABBREVIATED 0x02
- #define WNFMT_INENUM 0x10
- #define WNFMT_CONNECTION 0x20
-
- #define NETINFO_DLL16 0x00000001 /* Provider running as 16 bit Winnet Driver */
- #define NETINFO_DISKRED 0x00000004 /* Provider requires disk redirections to connect */
- #define NETINFO_PRINTERRED 0x00000008 /* Provider requires printer redirections to connect */
-
- #define RP_LOGON 0x01 /* if set, do for logon, else for logoff */
- #define RP_INIFILE 0x02 /* if set, reconcile .INI file, else reg. hive */
-
- //
- // Policies.
- //
- #define PP_DISPLAYERRORS 0x01 /* if set, display error messages, else fail silently if error */
-
- //
- // STATUS CODES
- //
-
- // General
-
- #define WN_SUCCESS NO_ERROR
- #define WN_NO_ERROR NO_ERROR
- #define WN_NOT_SUPPORTED ERROR_NOT_SUPPORTED
- #define WN_CANCEL ERROR_CANCELLED
- #define WN_RETRY ERROR_RETRY
- #define WN_NET_ERROR ERROR_UNEXP_NET_ERR
- #define WN_MORE_DATA ERROR_MORE_DATA
- #define WN_BAD_POINTER ERROR_INVALID_ADDRESS
- #define WN_BAD_VALUE ERROR_INVALID_PARAMETER
- #define WN_BAD_USER ERROR_BAD_USERNAME
- #define WN_BAD_PASSWORD ERROR_INVALID_PASSWORD
- #define WN_ACCESS_DENIED ERROR_ACCESS_DENIED
- #define WN_FUNCTION_BUSY ERROR_BUSY
- #define WN_WINDOWS_ERROR ERROR_UNEXP_NET_ERR
- #define WN_OUT_OF_MEMORY ERROR_NOT_ENOUGH_MEMORY
- #define WN_NO_NETWORK ERROR_NO_NETWORK
- #define WN_EXTENDED_ERROR ERROR_EXTENDED_ERROR
- #define WN_BAD_LEVEL ERROR_INVALID_LEVEL
- #define WN_BAD_HANDLE ERROR_INVALID_HANDLE
- #define WN_NOT_INITIALIZING ERROR_ALREADY_INITIALIZED
- #define WN_NO_MORE_DEVICES ERROR_NO_MORE_DEVICES
-
- // Connection
-
- #define WN_NOT_CONNECTED ERROR_NOT_CONNECTED
- #define WN_OPEN_FILES ERROR_OPEN_FILES
- #define WN_DEVICE_IN_USE ERROR_DEVICE_IN_USE
- #define WN_BAD_NETNAME ERROR_BAD_NET_NAME
- #define WN_BAD_LOCALNAME ERROR_BAD_DEVICE
- #define WN_ALREADY_CONNECTED ERROR_ALREADY_ASSIGNED
- #define WN_DEVICE_ERROR ERROR_GEN_FAILURE
- #define WN_CONNECTION_CLOSED ERROR_CONNECTION_UNAVAIL
- #define WN_NO_NET_OR_BAD_PATH ERROR_NO_NET_OR_BAD_PATH
- #define WN_BAD_PROVIDER ERROR_BAD_PROVIDER
- #define WN_CANNOT_OPEN_PROFILE ERROR_CANNOT_OPEN_PROFILE
- #define WN_BAD_PROFILE ERROR_BAD_PROFILE
- #define WN_BAD_DEV_TYPE ERROR_BAD_DEV_TYPE
- #define WN_DEVICE_ALREADY_REMEMBERED ERROR_DEVICE_ALREADY_REMEMBERED
-
- // Enumeration
-
- #define WN_NO_MORE_ENTRIES ERROR_NO_MORE_ITEMS
- #define WN_NOT_CONTAINER ERROR_NOT_CONTAINER
-
- // Authentication
-
- #define WN_NOT_AUTHENTICATED ERROR_NOT_AUTHENTICATED
- #define WN_NOT_LOGGED_ON ERROR_NOT_LOGGED_ON
- #define WN_NOT_VALIDATED ERROR_NO_LOGON_SERVERS
-
- //
- // For Shell
- //
-
- #define WNCON_FORNETCARD 0x00000001
- #define WNCON_NOTROUTED 0x00000002
- #define WNCON_SLOWLINK 0x00000004
- #define WNCON_DYNAMIC 0x00000008
- // End winnetwk.h
-
- //
- // Adapted from cderr.h - Common dialog error return codes
- //
- // Version 1.0
- //
-
- #define CDERR_DIALOGFAILURE 0xFFFF
-
- #define CDERR_GENERALCODES 0x0000
- #define CDERR_STRUCTSIZE 0x0001
- #define CDERR_INITIALIZATION 0x0002
- #define CDERR_NOTEMPLATE 0x0003
- #define CDERR_NOHINSTANCE 0x0004
- #define CDERR_LOADSTRFAILURE 0x0005
- #define CDERR_FINDRESFAILURE 0x0006
- #define CDERR_LOADRESFAILURE 0x0007
- #define CDERR_LOCKRESFAILURE 0x0008
- #define CDERR_MEMALLOCFAILURE 0x0009
- #define CDERR_MEMLOCKFAILURE 0x000A
- #define CDERR_NOHOOK 0x000B
- #define CDERR_REGISTERMSGFAIL 0x000C
-
- #define PDERR_PRINTERCODES 0x1000
- #define PDERR_SETUPFAILURE 0x1001
- #define PDERR_PARSEFAILURE 0x1002
- #define PDERR_RETDEFFAILURE 0x1003
- #define PDERR_LOADDRVFAILURE 0x1004
- #define PDERR_GETDEVMODEFAIL 0x1005
- #define PDERR_INITFAILURE 0x1006
- #define PDERR_NODEVICES 0x1007
- #define PDERR_NODEFAULTPRN 0x1008
- #define PDERR_DNDMMISMATCH 0x1009
- #define PDERR_CREATEICFAILURE 0x100A
- #define PDERR_PRINTERNOTFOUND 0x100B
- #define PDERR_DEFAULTDIFFERENT 0x100C
-
- #define CFERR_CHOOSEFONTCODES 0x2000
- #define CFERR_NOFONTS 0x2001
- #define CFERR_MAXLESSTHANMIN 0x2002
-
- #define FNERR_FILENAMECODES 0x3000
- #define FNERR_SUBCLASSFAILURE 0x3001
- #define FNERR_INVALIDFILENAME 0x3002
- #define FNERR_BUFFERTOOSMALL 0x3003
-
- #define FRERR_FINDREPLACECODES 0x4000
- #define FRERR_BUFFERLENGTHZERO 0x4001
-
- #define CCERR_CHOOSECOLORCODES 0x5000
- // end cderr.h
-
- //
- // Adapted from shellapi.h
- //
- // SHELL.DLL functions, types, and definitions
- //
-
- //
- // AppBar stuff
- //
- #define ABM_NEW 0x00000000
- #define ABM_REMOVE 0x00000001
- #define ABM_QUERYPOS 0x00000002
- #define ABM_SETPOS 0x00000003
- #define ABM_GETSTATE 0x00000004
- #define ABM_GETTASKBARPOS 0x00000005
- #define ABM_ACTIVATE 0x00000006 // lParam == TRUE/FALSE means activate/deactivate
- #define ABM_GETAUTOHIDEBAR 0x00000007
- #define ABM_SETAUTOHIDEBAR 0x00000008 // this can fail at any time. MUST check the result
- // lParam = TRUE/FALSE Set/Unset
- // uEdge = what edge
- #define ABM_WINDOWPOSCHANGED 0x0000009
-
-
- // these are put in the wparam of callback messages
- #define ABN_STATECHANGE 0x0000000
- #define ABN_POSCHANGED 0x0000001
- #define ABN_FULLSCREENAPP 0x0000002
- #define ABN_WINDOWARRANGE 0x0000003 // lParam == TRUE means hide
-
- // flags for get state
- #define ABS_AUTOHIDE 0x0000001
- #define ABS_ALWAYSONTOP 0x0000002
-
- #define ABE_LEFT 0
- #define ABE_TOP 1
- #define ABE_RIGHT 2
- #define ABE_BOTTOM 3
-
- //
- // Shell File Operations
- //
-
- #define FO_MOVE 0x0001
- #define FO_COPY 0x0002
- #define FO_DELETE 0x0003
- #define FO_RENAME 0x0004
-
- #define FOF_MULTIDESTFILES 0x0001
- #define FOF_CONFIRMMOUSE 0x0002
- #define FOF_SILENT 0x0004 // don't create progress/report
- #define FOF_RENAMEONCOLLISION 0x0008
- #define FOF_NOCONFIRMATION 0x0010 // Don't prompt the user.
- #define FOF_WANTMAPPINGHANDLE 0x0020 // Fill in SHFILEOPSTRUCT.hNameMappings
- // Must be freed using SHFreeNameMappings
- #define FOF_ALLOWUNDO 0x0040
- #define FOF_FILESONLY 0x0080 // on *.*, do only files
- #define FOF_SIMPLEPROGRESS 0x0100 // means don't show names of files
- #define FOF_NOCONFIRMMKDIR 0x0200 // don't confirm making any needed dirs
-
- // typedef WORD FILEOP_FLAGS;
-
- #define PO_DELETE 0x0013 // printer is being deleted
- #define PO_RENAME 0x0014 // printer is being renamed
- #define PO_PORTCHANGE 0x0020 // port this printer connected to is being changed
- // if this id is set, the strings received by
- // the copyhook are a doubly-null terminated
- // list of strings. The first is the printer
- // name and the second is the printer port.
- #define PO_REN_PORT 0x0034 // PO_RENAME and PO_PORTCHANGE at same time.
-
- #define PRINTEROP_FLAGS WORD
-
- //
- // Begin ShellExecuteEx and family
- //
-
- // ShellExecute() and ShellExecuteEx() error codes
-
- // regular WinExec() codes
- #define SE_ERR_FNF 2 // file not found
- #define SE_ERR_PNF 3 // path not found
- #define SE_ERR_ACCESSDENIED 5 // access denied
- #define SE_ERR_OOM 8 // out of memory
- #define SE_ERR_DLLNOTFOUND 32
-
- // error values for ShellExecute() beyond the regular WinExec() codes
- #define SE_ERR_SHARE 26
- #define SE_ERR_ASSOCINCOMPLETE 27
- #define SE_ERR_DDETIMEOUT 28
- #define SE_ERR_DDEFAIL 29
- #define SE_ERR_DDEBUSY 30
- #define SE_ERR_NOASSOC 31
-
- // Note CLASSKEY overrides CLASSNAME
- #define SEE_MASK_CLASSNAME 0x00000001
- #define SEE_MASK_CLASSKEY 0x00000003
- // Note INVOKEIDLIST overrides IDLIST
- #define SEE_MASK_IDLIST 0x00000004
- #define SEE_MASK_INVOKEIDLIST 0x0000000c
- #define SEE_MASK_ICON 0x00000010
- #define SEE_MASK_HOTKEY 0x00000020
- #define SEE_MASK_NOCLOSEPROCESS 0x00000040
- #define SEE_MASK_CONNECTNETDRV 0x00000080
- #define SEE_MASK_FLAG_DDEWAIT 0x00000100
- #define SEE_MASK_DOENVSUBST 0x00000200
- #define SEE_MASK_FLAG_NO_UI 0x00000400
- #define SEE_MASK_UNICODE 0x00010000
-
- //
- // Tray notification definitions
- //
-
- #define NIM_ADD 0x00000000
- #define NIM_MODIFY 0x00000001
- #define NIM_DELETE 0x00000002
-
- #define NIF_MESSAGE 0x00000001
- #define NIF_ICON 0x00000002
- #define NIF_TIP 0x00000004
-
- //
- // Begin SHGetFileInfo
- //
- #define SHGFI_ICON 0x000000100 // get icon
- #define SHGFI_DISPLAYNAME 0x000000200 // get display name
- #define SHGFI_TYPENAME 0x000000400 // get type name
- #define SHGFI_ATTRIBUTES 0x000000800 // get attributes
- #define SHGFI_ICONLOCATION 0x000001000 // get icon location
- #define SHGFI_EXETYPE 0x000002000 // return exe type
- #define SHGFI_SYSICONINDEX 0x000004000 // get system icon index
- #define SHGFI_LINKOVERLAY 0x000008000 // put a link overlay on icon
- #define SHGFI_SELECTED 0x000010000 // show icon in selected state
- #define SHGFI_LARGEICON 0x000000000 // get large icon
- #define SHGFI_SMALLICON 0x000000001 // get small icon
- #define SHGFI_OPENICON 0x000000002 // get open icon
- #define SHGFI_SHELLICONSIZE 0x000000004 // get shell size icon
- #define SHGFI_PIDL 0x000000008 // pszPath is a pidl
- #define SHGFI_USEFILEATTRIBUTES 0x000000010 // use passed dwFileAttribute
-
- #define SHGNLI_PIDL 0x000000001 // pszLinkTo is a pidl
- #define SHGNLI_PREFIXNAME 0x000000002 // Make name "Shortcut to xxx"
- // End shellapi.h
-
- //
- // Adapted from commdlg.h
- //
- // This module defines the 32-Bit Common Dialog APIs
- //
-
- #define OFN_READONLY 0x00000001
- #define OFN_OVERWRITEPROMPT 0x00000002
- #define OFN_HIDEREADONLY 0x00000004
- #define OFN_NOCHANGEDIR 0x00000008
- #define OFN_SHOWHELP 0x00000010
- #define OFN_ENABLEHOOK 0x00000020
- #define OFN_ENABLETEMPLATE 0x00000040
- #define OFN_ENABLETEMPLATEHANDLE 0x00000080
- #define OFN_NOVALIDATE 0x00000100
- #define OFN_ALLOWMULTISELECT 0x00000200
- #define OFN_EXTENSIONDIFFERENT 0x00000400
- #define OFN_PATHMUSTEXIST 0x00000800
- #define OFN_FILEMUSTEXIST 0x00001000
- #define OFN_CREATEPROMPT 0x00002000
- #define OFN_SHAREAWARE 0x00004000
- #define OFN_NOREADONLYRETURN 0x00008000
- #define OFN_NOTESTFILECREATE 0x00010000
- #define OFN_NONETWORKBUTTON 0x00020000
- #define OFN_NOLONGNAMES 0x00040000 // force no long names for 4.x modules
-
- #define OFN_EXPLORER 0x00080000 // new look commdlg
- #define OFN_NODEREFERENCELINKS 0x00100000
- #define OFN_LONGNAMES 0x00200000 // force long names for 3.x modules
-
- // Return values for the registered message sent to the hook function
- // when a sharing violation occurs. OFN_SHAREFALLTHROUGH allows the
- // filename to be accepted, OFN_SHARENOWARN rejects the name but puts
- // up no warning (returned when the app has already put up a warning
- // message), and OFN_SHAREWARN puts up the default warning message
- // for sharing violations.
- //
- // Note: Undefined return values map to OFN_SHAREWARN, but are
- // reserved for future use.
-
- #define OFN_SHAREFALLTHROUGH 2
- #define OFN_SHARENOWARN 1
- #define OFN_SHAREWARN 0
-
-
- #define CDN_FIRST 4294966695 // (0U-601U)
- #define CDN_LAST 4294966597 // (0U-699U)
-
- // Notifications when Open or Save dialog status changes
- #define CDN_INITDONE (CDN_FIRST - 0x0000)
- #define CDN_SELCHANGE (CDN_FIRST - 0x0001)
- #define CDN_FOLDERCHANGE (CDN_FIRST - 0x0002)
- #define CDN_SHAREVIOLATION (CDN_FIRST - 0x0003)
- #define CDN_HELP (CDN_FIRST - 0x0004)
- #define CDN_FILEOK (CDN_FIRST - 0x0005)
- #define CDN_TYPECHANGE (CDN_FIRST - 0x0006)
-
- #define CDM_FIRST (WM_USER + 100)
- #define CDM_LAST (WM_USER + 200)
-
- // Messages to query information from the Open or Save dialogs
-
- // lParam = pointer to text buffer that gets filled in
- // wParam = max number of characters of the text buffer (including NULL)
- // return = < 0 if error; number of characters needed (including NULL)
- #define CDM_GETSPEC (CDM_FIRST + 0x0000)
-
- // lParam = pointer to text buffer that gets filled in
- // wParam = max number of characters of the text buffer (including NULL)
- // return = < 0 if error; number of characters needed (including NULL)
- #define CDM_GETFILEPATH (CDM_FIRST + 0x0001)
-
- // lParam = pointer to text buffer that gets filled in
- // wParam = max number of characters of the text buffer (including NULL)
- // return = < 0 if error; number of characters needed (including NULL)
- #define CDM_GETFOLDERPATH (CDM_FIRST + 0x0002)
-
- // lParam = pointer to ITEMIDLIST buffer that gets filled in
- // wParam = size of the ITEMIDLIST buffer
- // return = < 0 if error; length of buffer needed
- #define CDM_GETFOLDERIDLIST (CDM_FIRST + 0x0003)
-
- // lParam = pointer to a string
- // wParam = ID of control to change
- // return = not used
- #define CDM_SETCONTROLTEXT (CDM_FIRST + 0x0004)
-
- // lParam = not used
- // wParam = ID of control to change
- // return = not used
- #define CDM_HIDECONTROL (CDM_FIRST + 0x0005)
-
- // lParam = pointer to default extension (no dot)
- // wParam = not used
- // return = not used
- #define CDM_SETDEFEXT (CDM_FIRST + 0x0006)
-
- // ChooseColor Dialog
- #define CC_RGBINIT 0x00000001
- #define CC_FULLOPEN 0x00000002
- #define CC_PREVENTFULLOPEN 0x00000004
- #define CC_SHOWHELP 0x00000008
- #define CC_ENABLEHOOK 0x00000010
- #define CC_ENABLETEMPLATE 0x00000020
- #define CC_ENABLETEMPLATEHANDLE 0x00000040
- #define CC_SOLIDCOLOR 0x00000080
- #define CC_ANYCOLOR 0x00000100
-
- // FindReplace Dialog
- #define FR_DOWN 0x00000001
- #define FR_WHOLEWORD 0x00000002
- #define FR_MATCHCASE 0x00000004
- #define FR_FINDNEXT 0x00000008
- #define FR_REPLACE 0x00000010
- #define FR_REPLACEALL 0x00000020
- #define FR_DIALOGTERM 0x00000040
- #define FR_SHOWHELP 0x00000080
- #define FR_ENABLEHOOK 0x00000100
- #define FR_ENABLETEMPLATE 0x00000200
- #define FR_NOUPDOWN 0x00000400
- #define FR_NOMATCHCASE 0x00000800
- #define FR_NOWHOLEWORD 0x00001000
- #define FR_ENABLETEMPLATEHANDLE 0x00002000
- #define FR_HIDEUPDOWN 0x00004000
- #define FR_HIDEMATCHCASE 0x00008000
- #define FR_HIDEWHOLEWORD 0x00010000
-
-
- // ChooseFont Dialog
- #define CF_SCREENFONTS 0x00000001
- #define CF_PRINTERFONTS 0x00000002
- #define CF_BOTH (bitor(CF_SCREENFONTS,CF_PRINTERFONTS))
- #define CF_SHOWHELP 0x00000004
- #define CF_ENABLEHOOK 0x00000008
- #define CF_ENABLETEMPLATE 0x00000010
- #define CF_ENABLETEMPLATEHANDLE 0x00000020
- #define CF_INITTOLOGFONTSTRUCT 0x00000040
- #define CF_USESTYLE 0x00000080
- #define CF_EFFECTS 0x00000100
- #define CF_APPLY 0x00000200
- #define CF_ANSIONLY 0x00000400
- #define CF_SCRIPTSONLY CF_ANSIONLY
- #define CF_NOVECTORFONTS 0x00000800
- #define CF_NOOEMFONTS CF_NOVECTORFONTS
- #define CF_NOSIMULATIONS 0x00001000
- #define CF_LIMITSIZE 0x00002000
- #define CF_FIXEDPITCHONLY 0x00004000
- #define CF_WYSIWYG 0x00008000 // must also have CF_SCREENFONTS & CF_PRINTERFONTS
- #define CF_FORCEFONTEXIST 0x00010000
- #define CF_SCALABLEONLY 0x00020000
- #define CF_TTONLY 0x00040000
- #define CF_NOFACESEL 0x00080000
- #define CF_NOSTYLESEL 0x00100000
- #define CF_NOSIZESEL 0x00200000
- #define CF_SELECTSCRIPT 0x00400000
- #define CF_NOSCRIPTSEL 0x00800000
- #define CF_NOVERTFONTS 0x01000000
-
- // these are extra nFontType bits that are added to what is returned to the
- // EnumFonts callback routine
-
- #define SIMULATED_FONTTYPE 0x8000
- #define PRINTER_FONTTYPE 0x4000
- #define SCREEN_FONTTYPE 0x2000
- #define BOLD_FONTTYPE 0x0100
- #define ITALIC_FONTTYPE 0x0200
- #define REGULAR_FONTTYPE 0x0400
-
- #define WM_CHOOSEFONT_GETLOGFONT (WM_USER + 1)
- #define WM_CHOOSEFONT_SETLOGFONT (WM_USER + 101)
- #define WM_CHOOSEFONT_SETFLAGS (WM_USER + 102)
-
- // strings used to obtain unique window message for communication
- // between dialog and caller
-
- #define LBSELCHSTRINGA "commdlg_LBSelChangedNotify"
- #define SHAREVISTRINGA "commdlg_ShareViolation"
- #define FILEOKSTRINGA "commdlg_FileNameOK"
- #define COLOROKSTRINGA "commdlg_ColorOK"
- #define SETRGBSTRINGA "commdlg_SetRGBColor"
- #define HELPMSGSTRINGA "commdlg_help"
- #define FINDMSGSTRINGA "commdlg_FindReplace"
-
- #define LBSELCHSTRING LBSELCHSTRINGA
- #define SHAREVISTRING SHAREVISTRINGA
- #define FILEOKSTRING FILEOKSTRINGA
- #define COLOROKSTRING COLOROKSTRINGA
- #define SETRGBSTRING SETRGBSTRINGA
- #define HELPMSGSTRING HELPMSGSTRINGA
- #define FINDMSGSTRING FINDMSGSTRINGA
-
- // HIWORD values for lParam of commdlg_LBSelChangeNotify message
- #define CD_LBSELNOITEMS -1
- #define CD_LBSELCHANGE 0
- #define CD_LBSELSUB 1
- #define CD_LBSELADD 2
-
-
- // Print Dialog
- #define PD_ALLPAGES 0x00000000
- #define PD_SELECTION 0x00000001
- #define PD_PAGENUMS 0x00000002
- #define PD_NOSELECTION 0x00000004
- #define PD_NOPAGENUMS 0x00000008
- #define PD_COLLATE 0x00000010
- #define PD_PRINTTOFILE 0x00000020
- #define PD_PRINTSETUP 0x00000040
- #define PD_NOWARNING 0x00000080
- #define PD_RETURNDC 0x00000100
- #define PD_RETURNIC 0x00000200
- #define PD_RETURNDEFAULT 0x00000400
- #define PD_SHOWHELP 0x00000800
- #define PD_ENABLEPRINTHOOK 0x00001000
- #define PD_ENABLESETUPHOOK 0x00002000
- #define PD_ENABLEPRINTTEMPLATE 0x00004000
- #define PD_ENABLESETUPTEMPLATE 0x00008000
- #define PD_ENABLEPRINTTEMPLATEHANDLE 0x00010000
- #define PD_ENABLESETUPTEMPLATEHANDLE 0x00020000
- #define PD_USEDEVMODECOPIES 0x00040000
- #define PD_USEDEVMODECOPIESANDCOLLATE 0x00040000
- #define PD_DISABLEPRINTTOFILE 0x00080000
- #define PD_HIDEPRINTTOFILE 0x00100000
- #define PD_NONETWORKBUTTON 0x00200000
-
- #define DN_DEFAULTPRN 0x0001
-
-
- // PageSetup Dialog
- #define WM_PSD_PAGESETUPDLG (WM_USER )
- #define WM_PSD_FULLPAGERECT (WM_USER+1)
- #define WM_PSD_MINMARGINRECT (WM_USER+2)
- #define WM_PSD_MARGINRECT (WM_USER+3)
- #define WM_PSD_GREEKTEXTRECT (WM_USER+4)
- #define WM_PSD_ENVSTAMPRECT (WM_USER+5)
- #define WM_PSD_YAFULLPAGERECT (WM_USER+6)
-
- #define PSD_DEFAULTMINMARGINS 0x00000000 // default (printer's)
- #define PSD_INWININIINTLMEASURE 0x00000000 // 1st of 4 possible
-
- #define PSD_MINMARGINS 0x00000001 // use caller's
- #define PSD_MARGINS 0x00000002 // use caller's
- #define PSD_INTHOUSANDTHSOFINCHES 0x00000004 // 2nd of 4 possible
- #define PSD_INHUNDREDTHSOFMILLIMETERS 0x00000008 // 3rd of 4 possible
- #define PSD_DISABLEMARGINS 0x00000010
- #define PSD_DISABLEPRINTER 0x00000020
- #define PSD_NOWARNING 0x00000080 // must be same as PD_*
- #define PSD_DISABLEORIENTATION 0x00000100
- #define PSD_RETURNDEFAULT 0x00000400 // must be same as PD_*
- #define PSD_DISABLEPAPER 0x00000200
- #define PSD_SHOWHELP 0x00000800 // must be same as PD_*
- #define PSD_ENABLEPAGESETUPHOOK 0x00002000 // must be same as PD_*
- #define PSD_ENABLEPAGESETUPTEMPLATE 0x00008000 // must be same as PD_*
- #define PSD_ENABLEPAGESETUPTEMPLATEHANDLE 0x00020000 // must be same as PD_*
- #define PSD_ENABLEPAGEPAINTHOOK 0x00040000
- #define PSD_DISABLEPAGEPAINTING 0x00080000
- // End commdlg.h
-
- //
- // Adapted from mcx.h
- //
- // This module defines the 32-Bit Windows MCX APIs
- //
-
- // Dial Options
- #define DIALOPTION_BILLING 0x00000040 // Supports wait for bong "$"
- #define DIALOPTION_QUIET 0x00000080 // Supports wait for quiet "@"
- #define DIALOPTION_DIALTONE 0x00000100 // Supports wait for dial tone "W"
-
- // SpeakerVolume for MODEMDEVCAPS
- #define MDMVOLFLAG_LOW 0x00000001
- #define MDMVOLFLAG_MEDIUM 0x00000002
- #define MDMVOLFLAG_HIGH 0x00000004
-
- // SpeakerVolume for MODEMSETTINGS
- #define MDMVOL_LOW 0x00000000
- #define MDMVOL_MEDIUM 0x00000001
- #define MDMVOL_HIGH 0x00000002
-
- // SpeakerMode for MODEMDEVCAPS
- #define MDMSPKRFLAG_OFF 0x00000001
- #define MDMSPKRFLAG_DIAL 0x00000002
- #define MDMSPKRFLAG_ON 0x00000004
- #define MDMSPKRFLAG_CALLSETUP 0x00000008
-
- // SpeakerMode for MODEMSETTINGS
- #define MDMSPKR_OFF 0x00000000
- #define MDMSPKR_DIAL 0x00000001
- #define MDMSPKR_ON 0x00000002
- #define MDMSPKR_CALLSETUP 0x00000003
-
- // Modem Options
- #define MDM_COMPRESSION 0x00000001
- #define MDM_ERROR_CONTROL 0x00000002
- #define MDM_FORCED_EC 0x00000004
- #define MDM_CELLULAR 0x00000008
- #define MDM_FLOWCONTROL_HARD 0x00000010
- #define MDM_FLOWCONTROL_SOFT 0x00000020
- #define MDM_CCITT_OVERRIDE 0x00000040
- #define MDM_SPEED_ADJUST 0x00000080
- #define MDM_TONE_DIAL 0x00000100
- #define MDM_BLIND_DIAL 0x00000200
- #define MDM_V23_OVERRIDE 0x00000400
- // End mcx.h
-
- #endif // WINMISC_H
-